package com.zhao.feign;

import com.zhao.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("PRODUCT")
@RequestMapping("product")
public interface ProductFeign {

    @GetMapping("getProduct/{id}")
    public Product getProduct(@PathVariable("id") String id);

}
